import 'package:get/get.dart';
import '../controllers/home_controller.dart';
import '../../../repositories/data_repository.dart';

class HomeBinding extends Bindings {
  @override
  void dependencies() {
    // 确保DataRepository已注册
    if (!Get.isRegistered<DataRepository>()) {
      Get.lazyPut(() => DataRepository());
    }
    
    // AuthController现在由中间件处理
    Get.lazyPut(() => HomeController());
  }
} 